import Vue from 'vue';
import Vuex from 'vuex';

import app from './app';
import user from './user';

import UserList from './modules/UserList';
import PermissionList from './modules/PermissionList';
import RolesList from './modules/RolesList';
import RolesPermission from './modules/RolesPermission';
import UserPermission from './modules/UserPermission';
import UserDetail from './modules/UserDetail';
import RolesDetail from './modules/RolesDetail';

Vue.use(Vuex);

const store = new Vuex.Store({
    state: {
        //
    },
    mutations: {
        //
    },
    actions: {

    },
    modules: {
        app,
        user,
        UserList,
        PermissionList,
        RolesList,
        RolesPermission,
        UserPermission,
        UserDetail,
        RolesDetail
    }
});

export default store;
